package com.ali.myshop.plus.business.controller;

import com.ali.myshop.plus.provider.api.EchoService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author :ali
 * @date :2020/1/23 15:33
 * @description：控制器
 * @modified By:
 * @version: 1.0.0
 */
@RestController
@RequestMapping(value = "echo")
public class EchoController {

    @Reference(version = "1.0.0")
    private EchoService echoService;

    @GetMapping("{/echo/string}")
    public String EchoController(@PathVariable String string){
        return "con"+string;
    }
}
